package com.xiaol.websocketstomp.web;

import java.security.Principal;

/**
 * User: Ray.Shaw <p />
 * Time: 2018/8/1 14:55  <p />
 * Version: V1.0  <p />
 * Description:  <p />
 */
public final class User implements Principal {

    private final String name;

    public User(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }
}